package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhNavMapper;
import com.ruoyi.system.domain.ZhNav;
import com.ruoyi.system.service.IZhNavService;
import com.ruoyi.common.support.Convert;
import org.springframework.transaction.annotation.Transactional;

/**
 * 导航栏 服务层实现
 * 
 * @author ruoyi
 * @date 2019-04-30
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ZhNavServiceImpl implements IZhNavService 
{
	@Autowired
	private ZhNavMapper zhNavMapper;

	/**
     * 查询导航栏信息
     * 
     * @param id 导航栏ID
     * @return 导航栏信息
     */
    @Override
	public ZhNav selectZhNavById(Integer id)
	{
	    return zhNavMapper.selectZhNavById(id);
	}
	
	/**
     * 查询导航栏列表
     * 
     * @param zhNav 导航栏信息
     * @return 导航栏集合
     */
	@Override
	public List<ZhNav> selectZhNavList(ZhNav zhNav)
	{
	    return zhNavMapper.selectZhNavList(zhNav);
	}
	
    /**
     * 新增导航栏
     * 
     * @param zhNav 导航栏信息
     * @return 结果
     */
	@Override
	public int insertZhNav(ZhNav zhNav)
	{
	    return zhNavMapper.insertZhNav(zhNav);
	}
	
	/**
     * 修改导航栏
     * 
     * @param zhNav 导航栏信息
     * @return 结果
     */
	@Override
	public int updateZhNav(ZhNav zhNav)
	{
	    return zhNavMapper.updateZhNav(zhNav);
	}

	/**
     * 删除导航栏对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteZhNavByIds(String ids)
	{
		return zhNavMapper.deleteZhNavByIds(Convert.toStrArray(ids));
	}
	
}
